<?php
/**
 * 初始化smarty
 */
defined('G_OSGH_ROOT') or exit('Access Denied');
include_once G_OSGH_ROOT.'../pl_common/smarty/Smarty.class.php';
global $smarty;
$smarty = new Smarty();

$smarty->template_dir = G_OSGH_ROOT.'tpl/';
$smarty->compile_dir = G_OSGH_ROOT.'tpl_c/';
$smarty->compile_check = true;
$smarty->force_compile = false;

$smarty->debugging = false;
 $smarty->caching = false;
$smarty->caching = 0;
$smarty->cache_lifetime = 3600;
$smarty->cache_dir = 'cache';

$smarty->left_delimiter = "<{";
$smarty->right_delimiter = "}>";

$smarty->assign('web_name',G_OSGH_NAME);

?>